import { bunKeyMouse } from "./bunKeyMouse";
import { bunBuiltin } from "./bunBuiltin";
import { oProject } from "~/models/Project";
import { bunDataAnalysis } from "./bunDataAnalysis";
import { bunNetSpider } from "./bunNetSpider";

export const GetAllBundles = () => [
  bunBuiltin,
  bunKeyMouse,
  bunDataAnalysis,
  bunNetSpider,
]
/**
 * 注意，这里的节点仅包含静态的。不包含开始结束，变量getter/setter等动态节点
 */
export const GetAllNodes = () => lodash.flatten(
  GetAllBundles()
    .filter(x => oProject.value!.modulesEnabled.includes(x.name))
    .map(x => x.exportNodes())
)